﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace StopwatchApp.StateMachine
{
    /// <summary>
    /// Used to track the characteristics of a lap.
    /// </summary>
    public class LapData
    {
        //*** Properties ***//
        public TimeSpan LapDuration { get; private set; }
        public int LapNumber { get; private set; }

        // TODO: move this to some presentation layer?
        public string LapNumberAsString
        {
            get { return String.Format("lap {0}", LapNumber+1); }
        }

        //*** Constructors ***//
        public LapData(int nLapNumber, TimeSpan aLapDuration)
        {
            LapNumber = nLapNumber;
            LapDuration = aLapDuration;
        }

        //*** Methods ***//
    }
}
